<?php


$res = unserialize(file_get_contents(__DIR__ . '/runtime/1710832380_ppd.json'));
$attachment = $res['Attachment'];
$goods_id = $attachment['goods_id'];
$getTime = $res['GetTime'];
$data = $res['Data'];
print_r($attachment);
echo strlen($getTime);
die;

function keyExistsInArray($array, $key)
{
    foreach ($array as $k => $v) {
        if ($k === $key) {
            return true;
        }
        if (is_array($v)) {
            if (keyExistsInArray($v, $key)) {
                return true;
            }
        }
    }
    return false;
}

var_dump(keyExistsInArray($data, 'goodsProperty'));